<template>
    <div class="box">
        <img src="../../assets/images/error_images/404.png" alt="">
        <button @click="goHome">返回首页</button>
    </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';

const router = useRouter()
const goHome = () => {
    router.push({
        path: '/'
    })
}
</script>

<style scoped>
.box {
    width: 100vw;
    height: 100vh;
    background: yellowgreen;
    display: flex;
    justify-content: center;
    align-items: center;
    img{
        width: 800px;
        height: 800px;
    }
    button{
        width: 200px;
        height: 50px;
        background-color: white;
        border: none;
        border-radius: 10px;
        font-size: 20px;
    }
}
</style>